import ElIcons from './element/icons';
import ElMessage from './element/message';
import Eventbus from './eventbus';
import Directives from '../directives';
import Mixin from './mixin';

const install = app => {
    ElIcons(app);
    Directives(app);
    app.provide('bus', Eventbus);
    app.provide('confirm', ElMessage.ElMessageBoxPromise);
    app.mixin(Mixin);
};

export const ZwMessage = ElMessage.ResetMessage;

export default {
    install
};
